// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 导入mint-ui 
import MintUI from 'mint-ui'

import 'mint-ui/lib/style.css'
Vue.use(MintUI)
// 导入HELLO-MUI tabbar
import './assets/dist/css/mui.min.css'
// 导入扩展字体图标
import './assets/dist/css/icons-extra.css'

// 导入moment 时间类库
import moment from 'moment'

// 创建全局过滤器
Vue.filter('newsDate', (originVal, pattern="YYYY-MM-DD HH:mm:ss") => {
      return moment(originVal).format(pattern);
})


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})